#include "Socket.h"
Socket::Socket(){
    _fd = socket(AF_INET,SOCK_STREAM,0);
    //错误判断
    if(_fd<0){
        perror("socket");
        return;
    }
}
Socket::Socket(int fd)
:_fd(fd){}

Socket::~Socket(){}

int Socket::fd(){
    return _fd;
}